package engine.math
{
	import engine.core.*;
	
	public class RxRotTrans
	{
		public var rot:RxQuaternion;
		public var trans:RxVector4;
		private static var s_pool:RxObjectPool = null;
		
		public function RxRotTrans()
		{
			this.rot = new RxQuaternion();
			this.trans = new RxVector4(0, 0, 0, 1);
		}
		
		public static function CreatePool(initSize:uint, growSize:uint) : void
		{
			var allocFunc:* = function () : Object
			{
				return new RxRotTrans();
			};
			
			s_pool = new RxObjectPool(allocFunc, null, initSize, growSize, RxRotTrans);
		}
	}
}